#!/bin/bash
# hs300: 000300
# 中证500: 000905
# 中证1000: 000852
# 中证红利: 000922
# 红利低波100: 930955
# 创业板: 399006
# 科创50: 000688

# 恒生指数: HSI
# 恒生科技: HSTECH
# 中概互联: H30533

# 标普500: .INX
# 纳指100: .NDX


gen() {
	code="$1"
	year=2025
	outfile="weekly_${code}_${year}.csv"

	python3 getdata.py $code $year > /dev/null
	python3 gendata.py $outfile

	echo ""
}

gen 000300
gen 000905
gen 000922
gen 930955
gen 399006
gen 000688

gen HSI
gen HSTECH
gen H30533

gen .INX
gen .NDX

